class Address {
  String addressId;
  String area;
  String city;
  String createAt;
  bool defAdds;
  String province;
  String realName;
  String street;
  String telephone;
  String updateAt;
  String userId;

  Address(
      {this.addressId,
        this.area,
        this.city,
        this.createAt,
        this.defAdds,
        this.province,
        this.realName,
        this.street,
        this.telephone,
        this.updateAt,
        this.userId});

  Address.fromJson(Map<String, dynamic> json) {
    addressId = json['addressId'];
    area = json['area'];
    city = json['city'];
    createAt = json['createAt'];
    defAdds = json['defAdds'];
    province = json['province'];
    realName = json['realName'];
    street = json['street'];
    telephone = json['telephone'];
    updateAt = json['updateAt'];
    userId = json['userId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['addressId'] = this.addressId;
    data['area'] = this.area;
    data['city'] = this.city;
    data['createAt'] = this.createAt;
    data['defAdds'] = this.defAdds;
    data['province'] = this.province;
    data['realName'] = this.realName;
    data['street'] = this.street;
    data['telephone'] = this.telephone;
    data['updateAt'] = this.updateAt;
    data['userId'] = this.userId;
    return data;
  }
}
